<?php

namespace app\model;



use think\model\relation\HasMany;

/**
 * @property integer $id 主键(主键)
 * @property string $created_at 创建时间
 * @property string $updated_at 更新时间
 * @property string $deleted_at 删除时间
 * @property string $cn_name 名称
 * @property string $details 详情
 */
class ExploreAddress extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_explore_address';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';


    /**
     * 获取章节
     * @return HasMany
     */
    public function chapter(): HasMany
    {
        return $this->hasMany(ExploreChapter::class, 'explore_address_id', 'id');
    }
    
    
    
}
